package com.uouie.common.entity;

import org.springframework.beans.BeanUtils;

/**
 * @author coder
 * @date 2023-11-08
 * @desc:
 */
public class MqttData<T> {
    private String mac;
    private String version;
    private T data;
    private Integer code;

    public MqttData() {

    }

    public MqttData(String msg) {
        BeanUtils.copyProperties(this, msg);
    }
}